package cn.wolfcode.shop.cloud.util;


import cn.wolfcode.shop.cloud.redis.KeyPrefix;

public class MemberKeyPrefixUtil implements KeyPrefix {

    private int expireTime;
    private String Prefix;

    public MemberKeyPrefixUtil(int expireTime, String Prefix) {
        this.expireTime = expireTime;
        this.Prefix = Prefix;
    }

    public MemberKeyPrefixUtil() {
    }


    @Override
    public String getPrefix() {
        return this.Prefix;
    }

    @Override
    public int getExpireTime() {

        return this.expireTime;
    }

    public static final MemberKeyPrefixUtil USER_TOKEN = new MemberKeyPrefixUtil(1800,"user_token:");
}
